<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="huoyun" uri="/huoyun" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<script type="text/javascript">
	$(function(){
		$("#topMenu_mycyw").bind({"focus" : function(){
				$(this).find(".more_con").show();
			},
			"blur": function(){
				$(this).find(".more_con").hide();			
			}			
		});
	});
	//加入到收藏夹
	 function addFavorite() 
	 { 
		 var sURL="http://127.0.0.1:8080/huoyun/channel/index.action";
		 var sTitle="运策网";
	     try 
	     { 
	         window.external.addFavorite(sURL, sTitle); 
	     } 
	     catch (e) 
	     { 
	         try 
	         { 
	             window.sidebar.addPanel(sTitle, sURL, ""); 
	         } 
	         catch (e) 
	         { 
	             alert("加入收藏失败，请使用Ctrl+D进行添加"); 
	         } 
	     } 
	 }
</script>
<div class="tlbg">
	<div class="tl_content clearfix">
		<ul class="user-ed">
			<li style="position: relative">
				服务热线：400-888-8888
			</li>
			<li class="lines"></li>
			<li>
				<a href="javascript:void(0);" onclick="addFavorite();">收藏我们</a>
			</li>
			<li class="lines"></li>
			<li>
				<a href="#">帮助中心</a>
			</li>
			<!-- <li class="lines"></li>
			<li>
				<a href="#">社区</a>
			</li> -->
			<li class="lines"></li>
			<li id="topMenu_mycyw" class="tl_more">
				<a class="tl_down">我的运策网</a>
				<div class="more_con">
					<h5>
						<a
							href="<s:url action='index.action' namespace='/userAdmin'></s:url>">我的运策网</a>
					</h5>
					<div class="more_list">
						<a
							href="<s:url action="accountIndex.action" namespace="/userAdmin"></s:url>">个人中心</a>
						<a target="_blank"
							href="<s:url action='queryAll.action' namespace='/order'></s:url>">订单管理</a>
						<sec:authorize access="hasRole('ROLE_USER')">
							<a target="_blank"
								href="<s:url action="cargoList.action" namespace="/cargo"></s:url>">货源管理</a>
						</sec:authorize>
						<sec:authorize access="hasRole('ROLE_DRIVER')">
							<a target="_blank"
								href="<s:url action="showMyRegistedCars.action" namespace="/car"></s:url>">车辆管理</a>
							<a target="_blank"
								href="<s:url action="showMyRegistedDrivers.action" namespace="/car"></s:url>">司机管理</a>
							<a target="_blank"
								href="<s:url action="showMyPublishedCars.action" namespace="/car"></s:url>">车源管理</a>
						</sec:authorize>
					</div>
				</div>
			</li>
			<li class="lines"></li>
			<li>
				<a class="red"
					href="<s:url action='preAddCargo.action' namespace='/cargo'></s:url>">发布货源</a>
			</li>
		</ul>
		<div class="zbj">
			<span style="color: #000000;">欢迎来到运策网!</span>
			<s:if test="loginUser != null">
				<a href="<s:url action="index.action" namespace="/userAdmin"></s:url>" class="name"><sec:authentication property="name"/></a>
			</s:if>
			<s:else>
				<span style="color: #000000;">请</span><a
				href="<s:url action='preLogin' namespace='/user'></s:url>">[登录]</a><span>|</span><a
				href="<s:url action='preRegister' namespace='/user'></s:url>"
				target="_blank">[免费注册]</a>
			</s:else>
		</div>
	</div>
</div>

<div id="header">
	<div class="header-top">
	  <div class="header-w clearfix">
		<h1 class="logo"><a target="_top" href="<s:url action="index.action" namespace="/channel"></s:url>">运策网</a></h1>
		<div class="top-quick">
			
		</div>
       
	  </div>
	</div>
	<div class="header-nav clearfix">
		<div class="header-w clearfix">
			<ul class="clearfix">
			 <li <s:if test="menu == 'home'">class="cur"</s:if> id="nav_home"><a target="_top" href="<s:url action="index.action" namespace="/channel"></s:url>"><span class="txt-shadow">首页</span></a></li>
			 <li <s:if test="menu == 'addGoods'">class="cur"</s:if> style="position:relative" id="nav_flight"><a target="_top" href="<s:url action="preAddCargo.action" namespace="/cargo"></s:url>"><span class="txt-shadow">我要发货</span></a><span class="new-icon"></span></li>
			 <li <s:if test="menu == 'addCar'">class="cur"</s:if> id="nav_ie"><a target="_top" href=""><span class="txt-shadow">发布空车</span></a></li>
			 <li <s:if test="menu == 'carChannel'">class="cur"</s:if> id="nav_hotel"><a target="_top" href=""><span class="txt-shadow">车源查询</span></a></li>
             <li <s:if test="menu == 'goodsChannel'">class="cur"</s:if> id="nav_kezhan"><a target="_top" href="<s:url action="preSearchGoods.action" namespace="/channel"></s:url>"><span class="txt-shadow">货源查询</span></a></li>
			 <li <s:if test="menu == 'help'">class="cur"</s:if> id="nav_ticket"><a target="_top" href="<s:url action="preHelp.action" namespace="/channel"></s:url>"><span class="txt-shadow">帮助中心</span></a></li>
			</ul>
		</div>
	</div>
</div>